package data;

import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class DataTest1 {
    public static void main(String[] args) {
        try (
                DataOutputStream dos =
                        new DataOutputStream(new FileOutputStream("C:\\Users\\zjd\\IdeaProjects\\java\\src\\itheima.10.txt"));
                ){

            dos.writeInt(97);
            dos.writeDouble(99.99);
            dos.writeBoolean(true);
            dos.writeUTF("张家动123");
            dos.writeInt(99);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
